package com.association.controller;

import com.association.model.ResultResp;
import com.association.model.entity.WebPage;
import com.association.model.entity.WebProject;
import com.association.service.WebProjectService;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @author 18244
 */
@RestController
@RequestMapping("/WebProject")
public class WebProjectController {

    @Resource
    WebProjectService webProjectService;

    @ApiOperation(value = "查询")
    @PostMapping("/getById")
    public ResultResp getById(@RequestBody WebProject webPage) {
        return webProjectService.getById(webPage);
    }
}
